From: gicode Date: Thu, 1 Dec 2011 19:11:54 +0000 (+0000) Subject: Attempt to fix External Edit for files. X-Git-Tag: 1.31.0-rc.0~26198 X-Git-Url: http://git.cyclocoop.org/%22.%24info%5B?a=commitdiff_plain;h=db0cac00dad4c63cd9ec09e826a57fbb9e47e601;p=lhc%2Fweb%2Fwiklou.git Attempt to fix External Edit for files. I would feel better if I knew how to test this all the way through... Follow-up r102521. --- diff --git a/includes/ExternalEdit.php b/includes/ExternalEdit.php index b225001997..9bdbd6cbf3 100644 --- a/includes/ExternalEdit.php +++ b/includes/ExternalEdit.php @@ -80,7 +80,7 @@ class ExternalEdit extends ContextSource { } else { if ( $this->getRequest()->getVal( 'mode' ) == 'file' ) { $type = "Edit file"; - $image = wfLocalFile( $this->title ); + $image = wfLocalFile( $this->getTitle() ); $urls = array( 'File' => array( 'Extension' => $image->getExtension(), 'URL' => $image->getCanonicalURL()